package com.demo.dynamicProxy.demo01;

import org.junit.Test;

public class Test01 {
    @Test
    public void test01() {
        OrderFood orderFood = new OrderFoodImpl();
//        OrderFood proxy = (OrderFood) TakeOutFactory.getInstance().getJdkProxy(orderFood);
        OrderFood proxy2 = (OrderFood) TakeOutFactory.getInstance().getCglibProxy(orderFood);
//        proxy.order();
        proxy2.order();
    }


}
